/*emit('function','arg1','arg2',.....)*/
var eventsEmitter=require('events').EventEmitter;
var event=new eventsEmitter();
event.on('onopen',function(arg1,arg2){
    console.log('arg1=='+arg1+'------'+arg2);
})


setTimeout(function(){
  event.emit('onopen','参数1','参数2');
},1000);

console.log('eventsEmitter='+require('events').EventEmitter.listenerCount(event,'onopen'));
